<template>
  <div class="center">
    <div class="banner"></div>
    <div class="web_pub">
      <div class="pub">
        <div class="pub_title">
          <p>WEB前端 IT互联网<span>紧缺人才</span></p>
          <span>时代的变化 科技的发展 Web前端全栈占据顶端</span>
        </div>
        <div class="pub_center">
          <h4><span>HTML5</span>行业前景</h4>
          <p>
            &nbsp;&nbsp;&nbsp;
            以一个网站为例包括网页设计、前端开发、程序开发等。网站设计就是网站的外观，平面的东西。程序开发也好理解，就是功能实现。而前端开发，简单来说，就是把平面效果图转换成网页，把静态转换成动态。它的工作包括了：切图、写样式、做鼠标效果和图片切换效果等。而优秀的前端开发可以在实现这些效果的同时，既不影响网页打开速度、浏览器兼容性和搜索引擎的收录，还可以让用户使用体验更加舒适，使网站在访问中显得更精细、更用心。访客使用起来更简便。另外，现在前端工作还不仅仅只是网页制作，还有微网站、APP制作、游戏制作、例如可以将你开发的Web页面直接打包成手机使用的APP应用，游戏的互动界面更是以前端开发技术为主。
          </p>
        </div>
      </div>
      <div class="web_lun_box">
         <div class="web_lun">
        <swiper ref="mySwiper" :options="swiperOptions" >

          <swiper-slide
            ><div class="swiper_one">
              <img src="./img/lun1.jpg" alt="" /></div
          ></swiper-slide>
          <swiper-slide
            ><div class="swiper_one">
              <img src="./img/lun2.png" alt="" /></div
          ></swiper-slide>
          <swiper-slide
            ><div class="swiper_one">
              <img src="./img/lun4.png" alt="" /></div
          ></swiper-slide>
          <swiper-slide
            ><div class="swiper_one">
              <img src="./img/lun3.png" alt="" /></div
          ></swiper-slide>
          <swiper-slide
            ><div class="swiper_one">
              <img src="./img/lun2.png" alt="" /></div
          ></swiper-slide>
          
        </swiper>
        <div class="swiper-button-next" ></div>
          <div class="swiper-button-prev" ></div>
      </div>
      </div>
        
     
    </div>
    <div class="other_one">
      <h4>全栈工程师 企业<span>高薪重金</span>招人</h4>
      <p>供不应求</p>
      <div class="other_one_center">
        <div class="other_one_center_title">
          <i><img src="./img/one.png" alt=""></i>
          <span>市场岗位需求</span>
        </div>
        <div class="other_one_center_center">
          <div class="other_one_center_center_left">
            <img src="./img/展示图.png" alt="">
            <p class="other_one_one">前程无忧</p>
            <p class="other_one_two">智联招聘&nbsp;&nbsp;</p>
            <p class="other_one_three">其他招聘网站</p>
            <p class="other_one_four">拉勾网</p>
            <p class="other_one_fix">猎聘网</p>
            <p class="other_one_six">BOSS直聘</p>
          </div>
          <div class="other_one_center_center_right">
            <p>目前HTML5工程师日均岗位缺口超5000</p>
            <p>伴随着互联网+深入发展</p>
            <p>作为唯一前端展示技术</p>
            <p>预计HTML5人才缺口将翻倍增长</p>
          </div>
        </div>
        <div class="other_one_center_center_two">
          <div class="other_one_center_center_two_left">
            <div class="other_one_center_center_two_left_title">
              <i><img src="./img/two.png" alt=""></i><p>行业薪资调研</p>
            </div>
            <div class="other_one_center_center_two_left_wenan">
              <div class="other_one_center_center_two_left_wen">
              <p>每月平均薪资:<b>17640</b></p>
              <span>薪资水平</span>
              <div>
                <img src="./img/组8.png" alt="">
              </div>
            </div>
            <div class="other_one_center_center_two_left_wen2">
              <p>全栈工程师  平均薪资水平</p>
              <div>
                <img src="./img/组9.png" alt="">
              </div>
            </div>
            </div>
            
          </div>
          <div class="other_one_center_center_two_right">
            <div class="other_one_center_center_two_right_title">
              <i><img src="./img/three.png" alt=""></i><p>薪资变化数据表</p>
            </div>
            <div class="other_one_center_center_two_right_wen">
              <p>数据来源为职友集，以数据统计为依据，全栈工程师平均薪资
高于前端工程师以及后端工程师的薪资水平的一倍</p>

              <div>
                <img src="./img/组10.png" alt="">
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="other_two">
      <div class="other_two_title">
        <p>WEB前端 学习成果</p>
        <span>用作品说话 让你更深彻的了解Web前端</span>
      </div>
      <div class="other_two_show_one">
        <div class="other_two_show_one_title">
          <img src="./img/01.png" alt="">
        </div>
        <h4>&nbsp;&nbsp;&nbsp;学习后可制作个人主页，可开发大型信息量网站，企业集团网站，电商网站。如：淘宝、京东、等各大PC端页面网站。同时对于企业网站制作可独立完成，专区额外费用。</h4>
        <div class="other_two_show_one_img">
          <img src="./img/组11.png" alt="">
        </div>
      </div>
      <div class="other_two_show_one">
        <div class="other_two_show_one_title">
          <img src="./img/02.png" alt="">
        </div>
        <h4>&nbsp;&nbsp;&nbsp;应用软件界面前端信息的展示与交互程序设计应用，通过对各页面的关联程序嵌入，使用户对手机APP软件的操作灵活应用。如：微信、美团、微信小程序、腾讯视频、爱奇艺视频等各大APP软件。</h4>
        <div class="other_two_show_one_img">
          <img src="./img/wei1.png" alt="">
          <img src="./img/wei2.png" alt="">
          <img src="./img/wei3.png" alt="">
        </div>
      </div>
      <div class="other_two_show_one">
        <div class="other_two_show_one_title">
          <img src="./img/03.png" alt="">
        </div>
        <h4>&nbsp;&nbsp;&nbsp;掌握游戏前端界面，窗口模块及其他交互动效的展示及应用。</h4>
        <div class="other_two_show_one_img">
          <img src="./img/乒乓吧7.png" alt="">
          <img src="./img/象棋.png" alt="">
          <img src="./img/浴火沙城7.png" alt="">
        </div>
      </div>
    </div>
    <div class="other_three">
      <div class="other_three_title">
        <h2><span>高含金量</span>的课程 低投资 高回报</h2>
        <p>用最少的时间学习更多的技能</p>
      </div>
      <div class="other_three_title_img">
        <img src="./img/组12.png" alt="">
      </div>
    </div>
    <div class="other_fore">
      <div class="other_fore_title">
        <h2>全部<span>一线实战</span>讲师</h2>
        <p>你不想高薪都难</p>
      </div>
      <div class="other_fore_swiper">
        <div class="other_teacher" v-for="(item,index) in teacher" :key="item.id" @mouseover="mouseove(index)" @mouseleave="mouseleave(index)">
          <div class="teacher_img">
            <img :src="'https://itdahua.com/'+item.image" alt="">
          </div>
          <div class="teacher_name" v-show="!item.style">
            <p>{{item.name}}</p>
            <span>H5讲师</span>
          </div>
          <div class="teacher_shop" v-show="item.style">
            <p>简介</p>
            <div class="teacher_xian">
              {{item.introduce}}
            </div>
            <span>查看详情>></span>
          </div>
        </div>
      </div>
    </div>
    <Footer></Footer>
  </div>
</template>
<script>
import { Swiper, SwiperSlide, directive } from "vue-awesome-swiper";
import {Navigation,Pagination} from 'swiper'
import "swiper/swiper-bundle.css";
import 'swiper/modules/navigation/navigation.js';
import 'swiper/modules/navigation/navigation.min.css';
import {getList} from '../../../http/api'
import Footer from '@/components/footer/Footer.vue'
export default {
  data() {
    return {
      teacher:[],
      swiperOptions: {
        modules:[Navigation,Pagination],
        slidesPerView: 4,
        spaceBetween: 36,
         navigation: { 
          nextEl: ".swiper-button-next",
          prevEl: ".swiper-button-prev"
        },
        loop: true,

      },
    };
  },
  methods:{
    mouseove(index){
      this.teacher[index].style=true;
      console.log(1)
    },
    mouseleave(index){
      this.teacher[index].style=false;
      console.log(2)
    },
  },
  computed: {
    swiper() {
      return this.$refs.mySwiper.$swiper;
    },
  },
async  mounted() {
    this.swiper.slideTo(0, 1000, false);
    var arr= await getList('teacher');
    arr.length=4;
    arr.map(item=>{
      item.style=false;
      return item
    })
    this.teacher=arr;
  },
  components: {
    Swiper,
    SwiperSlide,
    Footer
  },
  directives: {
    swiper: directive,
  }
};
</script>
<style lang="scss" scoped>
* {
  padding: 0;
  margin: 0;
}

.swiper-button-prev{
  position: absolute !important;
  top: 50% !important;
  left: 10px !important;
  z-index: 10;
}
ul,
li {
  list-style: none;
}
.center {
  font-size: 20px;
  .banner {
    width: 100%;
    height: 650px;
    background: url(./img/banner.jpg) 50% no-repeat;
    background-size: cover;
    min-width: 1200px;
  }
  .web_pub {
    width: 100%;
    height: 1200px;
    background: url(./img/web_hub.png) 50% no-repeat;
  }
  .pub {
    width: 1200px;
    margin: 0 auto;
    height: auto;
  }
  .pub_title {
    width: auto;
    text-align: center;
    padding: 60px;
    padding-top: 100px;
    p {
      font-size: 40px;
      color: rgb(68, 71, 70);
      margin-bottom: 20px;
      span {
        font-size: 40px;
        color: rgb(41, 143, 236);
      }
    }
    span {
      color: rgb(158, 169, 173);
      font-size: 22px;
    }
  }
  .pub_center {
    h4 {
      font-size: 30px;
      text-align: center;
      margin: 20px;
      span {
        color: rgb(41, 143, 236);
      }
    }
    p {
      font-size: 22px;
      color: rgb(158, 169, 173);
      text-align: left;
      margin-top: 15px;
    }
  }
  .web_lun_box{
    width: 1200px;
    height: 435px;
    margin: 0 auto;
    overflow: hidden ;
  }
  .web_lun {
    width: 1200px;
    height: 435px;
    margin: 0 auto;
    margin: 20px auto;
    margin-top: 108px;
    position: absolute;
    overflow: hidden ;

    // .swiper {
    //   width: 100%;
    //   height: 100%;
    // }
     .swiper {
        width: 100%;
        height: 100%;
      }

      .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;

        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
      }
    .swiper-slide img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .swiper_one {
      width: 270px;
      height: 436px;
      background-color: aqua;
    }
  }
  .other_one{
    width: auto;
    height: auto;
    margin: 0 auto;
    margin-top: 155px;
    text-align: center;
    h4{
      font-size: 40px;
      color: rgb(60, 60, 60);
      span{
        color: rgb(35, 140, 227);
      }
    }
    p{
      margin-top: 32px;
      font-size: 22px;
      color: #77797b;
      margin-top: 30px;
      margin-bottom: 66px;
    }
  }
  .other_one_center{
    .other_one_center_title{
      width: auto;
      height: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      i{
        width: auto;
      }
      span{
        font-size: 32px;
        color: rgb(41, 143, 236);
        margin-left: 10px;
      }
    }
    .other_one_center_center{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .other_one_center_center_left{
      position: relative;
      padding-right: 86px;
      p{
        font-size: 24px;
        color: rgb(0, 0, 0);
        position: absolute;
        margin: 0;
        padding: 9px 4px;
        font-weight: 800;
      }
      img{
        width: 382px;
        height: 382px;
      }
      .other_one_one{
        left: -45px;
        top: -3px;
        border-bottom: 1px solid black;
      }
      .other_one_two{
        left: -89px;
        top: 239px;
        border-bottom: 1px solid black;
      }
      .other_one_three{
        left: 32px;
        top: 380px;
        border-bottom: 1px solid black;
        border-right: 1px solid black;
      }
      .other_one_four{
        left: 300px;
        top: 350px;
        border-bottom: 1px solid black;
        border-left: 1px solid black;
      }
      .other_one_fix{
        left: 383px;
        top: 170px;
        border-bottom: 1px solid black;
      }
      .other_one_six{
         left: 338px;
        top: 11px;
        border-bottom: 1px solid black;
      }
    }
    .other_one_center_center_right{
      padding-left: 100px;
      padding-top: 90px;
      p{
        font-size: 28px;
        color: black;
        margin-bottom: 20px;
        text-align: left;
      }
    }
  }
  .other_one_center_center_two_left_wenan{
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .other_one_center_center_two{
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    .other_one_center_center_two_left{
      .other_one_center_center_two_left_title{
        display: flex;
        i{
          width: 40px;
          height: 47px;
        }
        p{
          font-size: 32px;
          color: rgb(41, 143, 236);
           margin: 0;
          margin-left: 10px;
         
        }
      }
      .other_one_center_center_two_left_wen{
        margin-top: 48px;
        margin-right: 43px;
        p{
          margin: 0;
          font-size: 20px;
        }
        b{
          
          color: red;
          font-size: 26px;
        }
        span{
          margin-top: 30px;
          font-size: 18px;
          display: inline-block;
        }
        div{
          margin-top: 28px;
        }
      }
      .other_one_center_center_two_left_wen2{
        margin-top: 48px;
        margin-right: 43px;
        p{
          margin: 0;
          font-size: 20px;
          margin-bottom: 20px;
        }
      }
    }
    .other_one_center_center_two_right{
      font-size: 32px;
      .other_one_center_center_two_right_title{
        display: flex;
        i{
          width: 40px;
          height: 47px;
        }
        p{
          font-size: 32px;
          color: rgb(41, 143, 236);
          margin: 0;
          margin-left: 10px;
          
        }
      }
      .other_one_center_center_two_right_wen{
        margin-top: 48px;
        height: 377px;
        p{
          margin: 0;
          width: 500px;
          font-size: 17px;
          margin-bottom: 48px;
        }
        div{
          width: 489px;
          height: 227px;
          img{
            width: 100%;
            height: 100%;
          }
        }
      }
    }
  }
  .other_two{
    width: auto;
    margin-top: 82px;

    .other_two_title{
      margin: 0 auto;
      text-align: center;
      P{
        font-size: 40px;
        margin: 0;
        font-weight: 700;
      }
      span{
        font-size: 22px;
        display: inline-block;
        margin-top: 34px;
        color: rgb(160, 160, 160);
      }
    }
    .other_two_show_one{
      margin: 0 auto;
      margin-top: 50px;
      height: 700px;
      width: 100%;
      max-width: 1200px;
      background-color: rgb(238, 249, 254);
      .other_two_show_one_title{
        text-align: left;
        padding-top: 50px;
        padding-left: 29px;
      }
      h4{
        width: 1033px;
        margin: 0 auto;
        margin-top: 50px;
        font-size: 22px;
        line-height: 38px;
        font-weight: 400;
        text-align: left;
      }
      .other_two_show_one_img{
        margin: 0 auto;
        margin-top: 40px;
        width: 745px;
        display: flex;
        justify-content: space-between;
      }
    }
  }
  .other_three{
    margin-top: 100px;
    .other_three_title{
      text-align: center;
      font-size: 40px;
      h2{
      font-size: 40px;

      }
      span{
        color: rgb(40, 143, 231);
      }
      p{
        font-size: 22px;
        margin-top: 32px;
        color: rgb(160, 160, 160);
      }
    }
    .other_three_title_img{
      margin-top: 70px;
      text-align: center;
    }
  }
  .other_fore{
    margin-top: 40px;
    .other_fore_title{
      text-align: center;
      h2{
        font-size: 40px;
        color: rgb(68, 68, 68);
        span{
          color: rgb(40, 143, 231);
        }
      }
      p{
        font-size: 22px;
        margin-top: 32px;
        color: rgb(158, 169, 173);
      }
    }
    .other_fore_swiper{
      width: 1120px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
          padding-bottom: 98px;
      .other_teacher{
        position: relative;
        .teacher_img{
          width: 280px;
          height: 450px;
          background-color: rgb(35, 140, 227);
          img{
            width: 100%;
            height: 100%;
          }
        }
        .teacher_name{
          position: absolute;
          left: 0;
          bottom: 0;
          width: 100%;
          height: 95px;
          background-color: rgba(0,0,0,.5);
          color: white;
          text-align: center;
          p{
            font-size: 30px;
            margin-top: 16px;
          }
          span{
            display: inline-block;
            font-size: 22px;
            margin-top: 15px;
          }
        }
        .teacher_shop{
          width: 100%;
          height: 100%;
          text-align: center;

          background-color: rgb(50, 149, 235);
          display: flex;
          position: absolute;
          top: 0;
          left: 0;
          justify-content: center;
          align-items: center;
          flex-wrap: wrap;
          color: white;
          opacity: 0.8;
          p{
            font-size: 28px;
            padding-top: 50px;
            width: 207px;
          }
          .teacher_xian{
            border-top: 1px solid white;
            font-size: 18px;
            padding-top: 20px;
            width: 207px;
            height: 250;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 10;
            overflow: hidden;
          }
          span{
            border: 1px solid rgb(173, 178, 176);
          }
        }
      }

    }
  }
}
</style>